import request from '@/utils/request'

export function adminLogin(data) {
  return request({
    url: '/admin/login/001-login',
    method: 'get',
    params:data
  })
}

export function getInfo() {
  return request({
    url: '/admin/login/002-getCusUserInfo',
    method: 'get'
    // params: { token }
  })
}


export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
// 合伙人列表
export function getcusHehuoren(data) {
  return request({
    url: '/admin/cusHehuoren/list',
    method: 'get',
    params:data
  })
}
// 信息修改
export function jiaoFuZhongXinSet(data) {
  return request({
    url: '/fuWuShang/set',
    method: 'get',
    params:data
  })
}


//获取角色列表
export function cusRoleList(data) {
  return request({
    url: 'admin/004/cusRole/001-list',
    method: 'get',
    params: data
  })
}

//修改密码
export function editPwd(data) {
  return request({
    url: 'admin/login/004-editPwd',
    method: 'get',
    params: data
  })
}